package p45_spring代理的特点;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

@Component
@Slf4j
public class Target {
    public Bean bean;
    @Autowired
    public void autowired(Bean bean) {
        log.info("bean1的依赖注入{}", bean);
        this.bean = bean;
    }

    @PostConstruct
    public void init() {
        log.info("bean1的初始化...");
    }

    public void test() {
        log.info("bean1的实例方法");
    }

    public static void test1() {log.info("bean1的静态方法");}

    public final void test2() {log.info("bean1的final方法");}

    private void test3() {log.info("bean1的私有方法");}
}
